home *** CD-ROM | disk | FTP | other *** search
/ Into His Marvelous Light / Into His Marvelous LIGHT.iso / lesson1.dxr / 00282_Script_Play Frame X < prev    next >
Text File  |  2001-09-05  |  2KB  |  72 lines

  1. -- DESCRIPTION --
  2.  
  3. on getBehaviorDescription me
  4.   return "¼
  5. PLAY FRAME X"&RETURN&RETURN&"¼
  6. Drop this behavior onto  a Sprite, the Stage or into the Script Channel of ¼
  7. the Score to start a sequence and move the playback head to a given frame."&¼
  8. RETURN&RETURN&"¼
  9. If you drop it onto a graphic member, the 'play' command ¼
  10. is sent when the user clicks on the sprite (on mouseUp)."&RETURN&RETURN&"¼
  11. If you drop it onto the Stage or the Script Channel of the Score, ¼
  12. it will be sent when the playback head leaves the frame (on exitFrame)."&¼
  13. RETURN&RETURN&"¼
  14. Use the 'Play Done' behavior to end the sequence and to tell the ¼
  15. playback head to return to the current frame."&RETURN&RETURN&"¼
  16. PARAMETERS:"&RETURN&"¼
  17. * Play which frame on mouseUp?"&RETURN&RETURN&"¼
  18. ASSOCIATED BEHAVIORS:"&RETURN&"¼
  19. + Play Movie X"&RETURN&"¼
  20. + Play Done"
  21. end getBehaviorDescription
  22.  
  23.  
  24. on getBehaviorTooltip me
  25.   return "¼
  26. Use with graphic members or as a frame behavior."&RETURN&RETURN&"¼
  27. Jumps the playback head to the given frame.  Acts"&RETURN&"¼
  28. on mouseUp or on exitFrame, depending on whether"&RETURN&"¼
  29. you drag it to a sprite or to the Stage."&RETURN&RETURN&"¼
  30.  Use the 'Play Done' behavior to return to this frame."
  31. end getBehaviorTooltip
  32.  
  33.  
  34.  
  35. -- HISTORY --
  36.  
  37. -- 3 November 1998, written for the D7 Behaviors Palette by James Newton
  38.  
  39.  
  40.  
  41. property myTargetFrame
  42.  
  43.  
  44. on mouseUp me
  45.   play myTargetFrame
  46. end mouseUp
  47.  
  48.  
  49. on exitFrame me
  50.   if the currentSpriteNum = 0 then
  51.     play myTargetFrame
  52.   end if
  53. end exitFrame
  54.  
  55.  
  56. on getPropertyDescriptionList me
  57.   if the currentSpriteNum = 0 then
  58.     theComment = "Play which frame on exitFrame?:"
  59.   else
  60.     theComment = "Play which frame on mouseUp?:"
  61.   end if
  62.   
  63.   return ¼
  64. [ ¼
  65.  #myTargetFrame: ¼
  66.  [ ¼
  67.   #comment: theComment, ¼
  68.   #format:  #integer, ¼
  69.   #default:  the frame ¼
  70.  ] ¼
  71. ]
  72. end getPropertyDescriptionList